global.button_anykey_pressed = ((keyboard_check_pressed(global.button[0]) == true) xor (keyboard_check_pressed(global.button[1]) == true) xor (keyboard_check_pressed(global.button[2]) == true));
switch (global.alpha_trigger)
{
case true:
global.alpha_n -= (0.1 * (30/room_speed))*(global.alpha_n > 0);
break;
case false:
global.alpha_n += (0.1 * (30/room_speed))*(global.alpha_n < 1);
break;
}

if (global.scn_next != -1)
{
if (global.alpha_trigger == true)
{
global.alpha_trigger = false;
}
if ((global.alpha_n == 1) && (global.alpha_trigger == false))
{
room_goto(global.scn_next);
obj_character.character_warping = false;
global.scn_next = -1;
global.alpha_trigger = true;
}
}
